package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_topshow table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_topshow"
 */

public abstract class BaseCnTopshow  implements Serializable {

	public static String REF = "CnTopshow";
	public static String PROP_STATUS = "Status";
	public static String PROP_ACTID = "Actid";
	public static String PROP_FLAG = "Flag";
	public static String PROP_NUM = "Num";
	public static String PROP_ID = "Id";
	public static String PROP_ORDERID = "Orderid";
	public static String PROP_PIC = "Pic";
	public static String PROP_CREATETIME = "Createtime";


	// constructors
	public BaseCnTopshow () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnTopshow (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String actid;
	private java.lang.String pic;
	private java.lang.String orderid;
	private java.lang.String status;
	private java.util.Date createtime;
	private java.lang.String flag;
	private java.lang.String num;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: ACTID
	 */
	public java.lang.String getActid () {
		return actid;
	}

	/**
	 * Set the value related to the column: ACTID
	 * @param actid the ACTID value
	 */
	public void setActid (java.lang.String actid) {
		this.actid = actid;
	}



	/**
	 * Return the value associated with the column: PIC
	 */
	public java.lang.String getPic () {
		return pic;
	}

	/**
	 * Set the value related to the column: PIC
	 * @param pic the PIC value
	 */
	public void setPic (java.lang.String pic) {
		this.pic = pic;
	}



	/**
	 * Return the value associated with the column: ORDERID
	 */
	public java.lang.String getOrderid () {
		return orderid;
	}

	/**
	 * Set the value related to the column: ORDERID
	 * @param orderid the ORDERID value
	 */
	public void setOrderid (java.lang.String orderid) {
		this.orderid = orderid;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: CREATETIME
	 */
	public java.util.Date getCreatetime () {
		return createtime;
	}

	/**
	 * Set the value related to the column: CREATETIME
	 * @param createtime the CREATETIME value
	 */
	public void setCreatetime (java.util.Date createtime) {
		this.createtime = createtime;
	}



	/**
	 * Return the value associated with the column: FLAG
	 */
	public java.lang.String getFlag () {
		return flag;
	}

	/**
	 * Set the value related to the column: FLAG
	 * @param flag the FLAG value
	 */
	public void setFlag (java.lang.String flag) {
		this.flag = flag;
	}



	/**
	 * Return the value associated with the column: NUM
	 */
	public java.lang.String getNum () {
		return num;
	}

	/**
	 * Set the value related to the column: NUM
	 * @param num the NUM value
	 */
	public void setNum (java.lang.String num) {
		this.num = num;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnTopshow)) return false;
		else {
			com.lovejes.cuniao.domain.CnTopshow cnTopshow = (com.lovejes.cuniao.domain.CnTopshow) obj;
			if (null == this.getId() || null == cnTopshow.getId()) return false;
			else return (this.getId().equals(cnTopshow.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}